package com.baizhi.cmfzdemo.appControlle;

import com.baizhi.cmfzdemo.entity.CmfzArticle;
import com.baizhi.cmfzdemo.service.CmfzArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by 54433 on 2019/4/12.
 */
@RestController
@RequestMapping("/article")
public class AppCmfzArticleController {
    @Autowired
    private CmfzArticleService cmfzArticleService;

    @RequestMapping("/showALLCmfzArticle")
    public List<CmfzArticle> showALLCmfzArticle(){
        return cmfzArticleService.showAllArticle();
    }

}
